#ifndef __INCLUDE_I2C_H
#define __INCLUDE_I2C_H


#define I2C_SDA P2_0
#define I2C_SCL P2_1
// #define I2C_SDA P1_7
// #define I2C_SCL P1_6

void I2C_Delay();
void I2C_Delay_10ms();

void I2C_Init();
void I2C_Start();
void I2C_Stop();
unsigned char I2C_Wait_ACK();
void I2C_Send_ACK();
void I2C_Send_Byte(unsigned char data);
unsigned char I2C_Read_Byte();
void I2C_Send_To_Address(unsigned char i2c_device_address, unsigned char reg_address, unsigned char reg_data);
unsigned char I2C_Read_From_Address(unsigned char i2c_device_address, unsigned char reg_address);
unsigned char MPU6050_WHOAMI();

#endif